from elasticsearch import Elasticsearch
# es = Elasticsearch(['47.104.71.155'], http_auth=('es', '123456'), port=9200, use_ssl=False, timeout=3600)
import os
import datetime
ES_IP = ['192.168.0.65']
# ES_IP = ['47.104.71.155']
ip = os.getenv('ES_IP')
if ip:
    ES_IP = [ip]
print(ES_IP)


def get_now_date():
    now_time = datetime.datetime.now() + datetime.timedelta(hours=8)
    return now_time
if __name__ == "__main__":
    print(ES_IP)
